Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.contentassist
Interface ICompletionProposalExtension3


public interface ICompletionProposalExtension3

Extension interface to ICompletionProposal. Add the following functions:

Since:
3.0

Method Summary
 int getCompletionOffset()
          Returns the document offset at which the receiver would insert its proposal.
 CharSequence getCompletionText()
          Returns the string that would be inserted at the position returned from getCompletionOffset() if this proposal was applied.
 IInformationControlCreator getInformationControlCreator()
          Returns the information control creator of this completion proposal.
 

Method Detail

getInformationControlCreator

public IInformationControlCreator getInformationControlCreator()
Returns the information control creator of this completion proposal.

Returns:
the information control creator, or null if no custom control creater is available

getCompletionText

public CharSequence getCompletionText()
Returns the string that would be inserted at the position returned from getCompletionOffset() if this proposal was applied. If the replacement string cannot be determined, null may be returned.

Returns:
the replacement string or null if it cannot be determined

getCompletionOffset

public int getCompletionOffset()
Returns the document offset at which the receiver would insert its proposal.

Returns:
the offset at which the proposal would insert its proposal

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.